package com.zlt.bkparking.entity;

import java.util.ArrayList;
import java.util.List;

public class AdvertisersUserExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public AdvertisersUserExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andAuIdIsNull() {
            addCriterion("au_id is null");
            return (Criteria) this;
        }

        public Criteria andAuIdIsNotNull() {
            addCriterion("au_id is not null");
            return (Criteria) this;
        }

        public Criteria andAuIdEqualTo(Long value) {
            addCriterion("au_id =", value, "auId");
            return (Criteria) this;
        }

        public Criteria andAuIdNotEqualTo(Long value) {
            addCriterion("au_id <>", value, "auId");
            return (Criteria) this;
        }

        public Criteria andAuIdGreaterThan(Long value) {
            addCriterion("au_id >", value, "auId");
            return (Criteria) this;
        }

        public Criteria andAuIdGreaterThanOrEqualTo(Long value) {
            addCriterion("au_id >=", value, "auId");
            return (Criteria) this;
        }

        public Criteria andAuIdLessThan(Long value) {
            addCriterion("au_id <", value, "auId");
            return (Criteria) this;
        }

        public Criteria andAuIdLessThanOrEqualTo(Long value) {
            addCriterion("au_id <=", value, "auId");
            return (Criteria) this;
        }

        public Criteria andAuIdIn(List<Long> values) {
            addCriterion("au_id in", values, "auId");
            return (Criteria) this;
        }

        public Criteria andAuIdNotIn(List<Long> values) {
            addCriterion("au_id not in", values, "auId");
            return (Criteria) this;
        }

        public Criteria andAuIdBetween(Long value1, Long value2) {
            addCriterion("au_id between", value1, value2, "auId");
            return (Criteria) this;
        }

        public Criteria andAuIdNotBetween(Long value1, Long value2) {
            addCriterion("au_id not between", value1, value2, "auId");
            return (Criteria) this;
        }

        public Criteria andAuTelIsNull() {
            addCriterion("au_tel is null");
            return (Criteria) this;
        }

        public Criteria andAuTelIsNotNull() {
            addCriterion("au_tel is not null");
            return (Criteria) this;
        }

        public Criteria andAuTelEqualTo(String value) {
            addCriterion("au_tel =", value, "auTel");
            return (Criteria) this;
        }

        public Criteria andAuTelNotEqualTo(String value) {
            addCriterion("au_tel <>", value, "auTel");
            return (Criteria) this;
        }

        public Criteria andAuTelGreaterThan(String value) {
            addCriterion("au_tel >", value, "auTel");
            return (Criteria) this;
        }

        public Criteria andAuTelGreaterThanOrEqualTo(String value) {
            addCriterion("au_tel >=", value, "auTel");
            return (Criteria) this;
        }

        public Criteria andAuTelLessThan(String value) {
            addCriterion("au_tel <", value, "auTel");
            return (Criteria) this;
        }

        public Criteria andAuTelLessThanOrEqualTo(String value) {
            addCriterion("au_tel <=", value, "auTel");
            return (Criteria) this;
        }

        public Criteria andAuTelLike(String value) {
            addCriterion("au_tel like", value, "auTel");
            return (Criteria) this;
        }

        public Criteria andAuTelNotLike(String value) {
            addCriterion("au_tel not like", value, "auTel");
            return (Criteria) this;
        }

        public Criteria andAuTelIn(List<String> values) {
            addCriterion("au_tel in", values, "auTel");
            return (Criteria) this;
        }

        public Criteria andAuTelNotIn(List<String> values) {
            addCriterion("au_tel not in", values, "auTel");
            return (Criteria) this;
        }

        public Criteria andAuTelBetween(String value1, String value2) {
            addCriterion("au_tel between", value1, value2, "auTel");
            return (Criteria) this;
        }

        public Criteria andAuTelNotBetween(String value1, String value2) {
            addCriterion("au_tel not between", value1, value2, "auTel");
            return (Criteria) this;
        }

        public Criteria andAuCompanyIsNull() {
            addCriterion("au_company is null");
            return (Criteria) this;
        }

        public Criteria andAuCompanyIsNotNull() {
            addCriterion("au_company is not null");
            return (Criteria) this;
        }

        public Criteria andAuCompanyEqualTo(String value) {
            addCriterion("au_company =", value, "auCompany");
            return (Criteria) this;
        }

        public Criteria andAuCompanyNotEqualTo(String value) {
            addCriterion("au_company <>", value, "auCompany");
            return (Criteria) this;
        }

        public Criteria andAuCompanyGreaterThan(String value) {
            addCriterion("au_company >", value, "auCompany");
            return (Criteria) this;
        }

        public Criteria andAuCompanyGreaterThanOrEqualTo(String value) {
            addCriterion("au_company >=", value, "auCompany");
            return (Criteria) this;
        }

        public Criteria andAuCompanyLessThan(String value) {
            addCriterion("au_company <", value, "auCompany");
            return (Criteria) this;
        }

        public Criteria andAuCompanyLessThanOrEqualTo(String value) {
            addCriterion("au_company <=", value, "auCompany");
            return (Criteria) this;
        }

        public Criteria andAuCompanyLike(String value) {
            addCriterion("au_company like", value, "auCompany");
            return (Criteria) this;
        }

        public Criteria andAuCompanyNotLike(String value) {
            addCriterion("au_company not like", value, "auCompany");
            return (Criteria) this;
        }

        public Criteria andAuCompanyIn(List<String> values) {
            addCriterion("au_company in", values, "auCompany");
            return (Criteria) this;
        }

        public Criteria andAuCompanyNotIn(List<String> values) {
            addCriterion("au_company not in", values, "auCompany");
            return (Criteria) this;
        }

        public Criteria andAuCompanyBetween(String value1, String value2) {
            addCriterion("au_company between", value1, value2, "auCompany");
            return (Criteria) this;
        }

        public Criteria andAuCompanyNotBetween(String value1, String value2) {
            addCriterion("au_company not between", value1, value2, "auCompany");
            return (Criteria) this;
        }

        public Criteria andAuContactsIsNull() {
            addCriterion("au_contacts is null");
            return (Criteria) this;
        }

        public Criteria andAuContactsIsNotNull() {
            addCriterion("au_contacts is not null");
            return (Criteria) this;
        }

        public Criteria andAuContactsEqualTo(String value) {
            addCriterion("au_contacts =", value, "auContacts");
            return (Criteria) this;
        }

        public Criteria andAuContactsNotEqualTo(String value) {
            addCriterion("au_contacts <>", value, "auContacts");
            return (Criteria) this;
        }

        public Criteria andAuContactsGreaterThan(String value) {
            addCriterion("au_contacts >", value, "auContacts");
            return (Criteria) this;
        }

        public Criteria andAuContactsGreaterThanOrEqualTo(String value) {
            addCriterion("au_contacts >=", value, "auContacts");
            return (Criteria) this;
        }

        public Criteria andAuContactsLessThan(String value) {
            addCriterion("au_contacts <", value, "auContacts");
            return (Criteria) this;
        }

        public Criteria andAuContactsLessThanOrEqualTo(String value) {
            addCriterion("au_contacts <=", value, "auContacts");
            return (Criteria) this;
        }

        public Criteria andAuContactsLike(String value) {
            addCriterion("au_contacts like", value, "auContacts");
            return (Criteria) this;
        }

        public Criteria andAuContactsNotLike(String value) {
            addCriterion("au_contacts not like", value, "auContacts");
            return (Criteria) this;
        }

        public Criteria andAuContactsIn(List<String> values) {
            addCriterion("au_contacts in", values, "auContacts");
            return (Criteria) this;
        }

        public Criteria andAuContactsNotIn(List<String> values) {
            addCriterion("au_contacts not in", values, "auContacts");
            return (Criteria) this;
        }

        public Criteria andAuContactsBetween(String value1, String value2) {
            addCriterion("au_contacts between", value1, value2, "auContacts");
            return (Criteria) this;
        }

        public Criteria andAuContactsNotBetween(String value1, String value2) {
            addCriterion("au_contacts not between", value1, value2, "auContacts");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}